package com.lcm.learn.lcmcode.recursive;

/**
 * @description:
 * @author: lcm
 * @create: 2020-01-21 09:44
 **/

public class Test {

    public static int i=0;
    public static void main(String[] args){
        try {
            retry();
        }catch (StackOverflowError error){
            error.printStackTrace();
            System.out.println("栈深度"+i);
        }
    }

    static void retry(){
        i++;
        retry();
    }
}
